package com.itheima.service;

import com.alibaba.dubbo.config.annotation.Service;
import lombok.extern.slf4j.Slf4j;

/**
 * @author TonyHao
 * @version v 1.0
 * @description
 * @data 2020/3/4
 */

@Service
@Slf4j
public class UserServiceImpl implements UserService {

    @Override
    public boolean login(String username, String password) {

        log.debug("service_provide...u:"+username+" p:"+password);

        if("admin".equals(username) && "123".equals(password)) {
            return true;
        }
        return false;
    }
}
